package com.foreknow.demo2;

public class Information {
    public static void main(String[] args) {

        String name = "熊大";
        byte age = 23;
        byte tex = 1;
        String school = "北京大学";
        String hobby = "玩";
        boolean marriage = false ;
        double che = 98.00;
        double salary = 8000.00;


        System.out.println(name);
        System.out.println(age);
        System.out.println(tex);
        System.out.println(school);
        System.out.println(hobby);
        System.out.println(marriage);
        System.out.println(che);
        System.out.println(salary);

        //任何基本数据类型与字符串链接（+）最终的类型都是字符串类型
        //String aa = name(字符串)+ age（整形）；
        String aa = name +age;
        System.out.println(aa);
        System.out.println(" 姓名：" + name + " 性别："+ tex + " 年龄：" + age);
        String newStr = " 姓名：" + name + " 性别："+ tex + " 年龄：" + age;
        System.out.println(newStr);

        String  newDouble = age +"+"+che;
        System.out.println(newDouble);
        System.out.println(age +"+"+che);
        System.out.println("！！！"+age+che);
        System.out.println("！！！"+(age+che));
    }
}
